package com.founder.devwork.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.founder.devwork.entity.EngineerEmail;
import com.founder.devwork.persistence.mapper.EngineerEmailMapper;
import com.founder.devwork.service.EngineerEmailService;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 * EngineerEmailServiceImpl 用于实现 EngineerEmailService 接口。
 * 提供查询工程师邮箱信息的方法。
 */
@Service
public class EngineerEmailServiceImpl extends ServiceImpl<EngineerEmailMapper, EngineerEmail> implements EngineerEmailService {

    @Override
    public List<EngineerEmail> getEmailsByEngineerId(String engineerId) {
        return this.list(new QueryWrapper<EngineerEmail>().eq("engineer_id", engineerId));
    }
}
